<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2016/3/5
 * Time: 15:08
 */
    echo "<title>6-1 顺序结构</title>";
    echo "<p><a href=\"index.php\"><font size=\"4\">目录</font></a></p>";
echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />";

    header("Content-type: text/html; charset=utf-8");
    $shoesPrice = 49;//鞋子单价
    $shoesNum = 1;//鞋子数量
    $shoesMoney = $shoesPrice * $shoesNum;//计算鞋子金额

    $shirtPrice = 99;//衬衣数量
    $shirtNum = 2;//衬衣数量
    $shirtMoney = $shirtPrice * $shirtNum;//计算衬衣金额

    $orderMoney = $shoesMoney + $shirtMoney;//计算订单总金额

    echo $orderMoney;